//
//  KKViewController.m
//  ReplyAssistant
//
//  Created by liaozhenming on 2018/11/21.
//  Copyright © 2018 KK. All rights reserved.
//

#import "KKViewController.h"

@interface KKViewController ()

@end

@implementation KKViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSInteger viewControllerCount = self.navigationController.viewControllers.count;
    if (viewControllerCount > 1) {
        self.navigationItem.hidesBackButton = true;
        [self setLeftBarButtonItemWithImageName: @"navigation_item_back" style: UIBarButtonItemStylePlain target: self action: @selector(private_action_back:)];
    }
}


#pragma mark - Private Action methods

- (void)private_action_back:(id)sender  {
    
    NSInteger viewControllerCount = self.navigationController.viewControllers.count;
    if (viewControllerCount > 1) {
        [self.navigationController popViewControllerAnimated: true];
    }
}

@end
